import request from '@/axios'
import { toRaw } from '@vue/reactivity'

/**
 * 
 * Admin
 * 
 */

export const getBannerListApi = (params) => {
  return request.post({ url: '/banner/list' , params: params })
}

export const deleteBannerListApi = (id) => {
  return request.delete({ url: '/banner/delete', params: { "id": id } })
}

export const saveBannerInfoApi = (params) => {
  return request.post({ url: '/banner/save' , data: toRaw(params) })
}
